package paidaxing.blog.post.dto.request;

import lombok.Data;
import paidaxing.blog.common.result.PageInfo;
import java.io.Serializable;

/**
 * 文章查询请求DTO
 */
@Data
public class PostQueryRequest extends PageInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 关键词搜索(标题或内容)
     */
    private String keyword;

    /**
     * 文章状态: DRAFT,PUBLISHED,PRIVATE,TRASH
     */
    private String status;

    /**
     * 分类ID
     */
    private Long categoryId;

    /**
     * 标签ID
     */
    private Long tagId;

    /**
     * 作者ID
     */
    private Long userId;

    /**
     * 是否置顶 0:否 1:是
     */
    private Integer isTop;

    /**
     * 是否推荐 0:否 1:是
     */
    private Integer isRecommend;

    /**
     * 排序字段
     */
    private String orderBy = "created_at";

    /**
     * 是否升序
     */
    private Boolean asc = false;
}